<%@ Page Language="C#" MasterPageFile="~/Template/Default.master" AutoEventWireup="true" 
	CodeFile="EditGallery.aspx.cs" Inherits="_Administration_EditGallery" %>
<%@ MasterType VirtualPath="~/Template/Default.master" %>
<%@ Register TagPrefix="UC" TagName="FormErrorList" Src="~/UserControl/FormErrorList.ascx" %>


<asp:Content ContentPlaceHolderID="BodyContent" runat="server">

	<p id="_ErrorMessage" class="errormessage" runat="server">Unable to load gallery for edit.</p>
	
	<asp:PlaceHolder ID="_Interface" Visible="false" runat="server">
	
		<form runat="server">
	    
			<UC:FormErrorList ID="_FormErrorList" runat="server" />
			
			<div class="admininputitem">
				<img id="_GalleryImage" runat="server" />
			</div>
			
			<div class="admininputitem">
				<h2><asp:Label AssociatedControlID="_GalleryName" runat="server">Gallery name</asp:Label></h2>
				<input type="text" size="50" maxlength="100" id="_GalleryName" runat="server" />
			</div>
			
			<div class="admininputitem">
				<h2><asp:Label AssociatedControlID="_GalleryDate" runat="server">Gallery date (dd/mm/yyyy)</asp:Label></h2>
				<input type="text" size="14" maxlength="14" id="_GalleryDate" runat="server" />
				<input type="submit" value="Current date" onserverclick="SetCurrentDate" runat="server" />
			</div>
			
			<div class="admininputitem">
				<h2><asp:Label AssociatedControlID="_GalleryDescription" runat="server">Description</asp:Label></h2>
				<textarea cols="50" rows="4" id="_GalleryDescription" runat="server" />
			</div>
			
			<div class="admininputitem">
				<h2><asp:Label AssociatedControlID="_GalleryEnabled" runat="server">Enabled</asp:Label></h2>
				<input type="checkbox" id="_GalleryEnabled" runat="server" />
			</div>
			
			<div class="admininputitem">
				<h2>Images</h2>
				<div id="_GalleryImageCount" runat="server" />
			</div>
			
			<div>
				<input type="submit" value="Update" onserverclick="UpdateGallery" runat="server" />
				<input type="submit" value="Cancel" onserverclick="CancelUpdate" runat="server" />
			</div>
		
		</form>
	
	</asp:PlaceHolder>
	
</asp:Content>